#ifndef APPLYACTION_H_
#define APPLYACTION_H_

#include "../../../../nemosomen/DataModel/src/nemosomenBase.h"
#include "DataProtocol.h"

class ApplyAction : public Action
{
public:
	ApplyAction(){
		
	}
	virtual ~ApplyAction() {}
	void execute(AttributeHolder *attribs){

		Texture *t = DisplayProtocol::getSelectedTexture(attribs);
		Texture *p = DisplayProtocol::getPreviewTexture(attribs);
		
		p->filebase->set(t->filebase->get());
		p->playMode->set(t->playMode->get());
		p->start->set(t->start->get());
		p->startStop->set(t->startStop->get());
		p->stop->set(t->stop->get());
		p->frameIncrement->set(t->frameIncrement->get()/5);
		p->current->set(t->current->get());
		p->length->set(t->length->get());
	}

};

#endif /*APPLYACTION_H_*/
